
//TODO a(49)
function a49(module, exports, a) {
    var i = a(23), s = a(3), r = a(21), n = a(50), o = function (e) {
        this.contDom = e.dom.cont, this.parentEl = e.dom.parentEl
    };
    s.extend(o, i);
    var l = {
        init: function () {
            this.playerData = this.manager.playerData, this.nodes = {appPlay: this.parentEl.find(".hv_app_play")}, this.isShow = !1, this.addEvent()
        }, addEvent: function () {
            this.nodes.appPlay.on("touchend", function () {
                n.init({vid: this.playerData.vinfo.vid})
            }, this), this.manager.listener.on(r.IS_AD, function (e, t) {
                this.toggleAppBtn(!t)
            }, this), this.manager.evt.on("vjs_toggleAppBtn", function (e) {
                this.toggleAppBtn(e.args[0])
            }, this), this.manager.evt.on(r.EVENT.RESIZE, this.onResize, this)
        }, toggleAppBtn: function (e) {
            e && this.isShow ? this.nodes.appPlay[0].style.display = "block" : e || (this.nodes.appPlay[0].style.display = "none")
        }, onResize: function () {
            this.contDom.width() > 410 ? (this.nodes.appPlay[0].style.display = "block", this.isShow = !0) : (this.nodes.appPlay[0].style.display = "none", this.isShow = !1)
        }
    };
    s.merge(o.prototype, l), module.exports = o
}

